static gboolean
file_to_archive_entry_common (GFile *root,
- OstreeRepoArchiveOptions *opts,
+ OstreeRepoExportArchiveOptions *opts,
GFile *path,
GFileInfo *file_info,
struct archive_entry *entry,
static gboolean
write_directory_to_libarchive_recurse (OstreeRepo *self,
- OstreeRepoArchiveOptions *opts,
+ OstreeRepoExportArchiveOptions *opts,
GFile *root,
GFile *dir,
struct archive *a,
#endif
/**
- * ostree_repo_write_tree_to_archive:
+ * ostree_repo_export_tree_to_archive:
* @self: An #OstreeRepo
* @opts: Options controlling conversion
* @root: An #OstreeRepoFile for the base directory
* file structure to @mtree.
*/
gboolean
-ostree_repo_write_tree_to_archive (OstreeRepo *self,
- OstreeRepoArchiveOptions *opts,
- OstreeRepoFile *root,
- void *archive,
- GCancellable *cancellable,
- GError **error)
+ostree_repo_export_tree_to_archive (OstreeRepo *self,
+ OstreeRepoExportArchiveOptions *opts,
+ OstreeRepoFile *root,
+ void *archive,
+ GCancellable *cancellable,
+ GError **error)
{
#ifdef HAVE_LIBARCHIVE
gboolean ret = FALSE;
GCancellable *cancellable,
GError **error);
+
+gboolean ostree_repo_write_archive_to_mtree (OstreeRepo *self,
+ GFile *archive,
+ OstreeMutableTree *mtree,
+ OstreeRepoCommitModifier *modifier,
+ gboolean autocreate_parents,
+ GCancellable *cancellable,
+ GError **error);
+
/**
- * OstreeRepoWriteArchiveOptions:
+ * OstreeRepoExportArchiveOptions:
*
* An extensible options structure controlling archive creation. Ensure that
* you have entirely zeroed the structure, then set just the desired
- * options. This is used by ostree_repo_write_tree_to_archive().
+ * options. This is used by ostree_repo_export_tree_to_archive().
*/
typedef struct {
guint disable_xattrs : 1;
guint unused_uint[8];
gpointer unused_ptrs[8];
-} OstreeRepoArchiveOptions;
-
-gboolean ostree_repo_write_archive_to_mtree (OstreeRepo *self,
- GFile *archive,
- OstreeMutableTree *mtree,
- OstreeRepoCommitModifier *modifier,
- gboolean autocreate_parents,
- GCancellable *cancellable,
- GError **error);
-
-gboolean ostree_repo_write_tree_to_archive (OstreeRepo *self,
- OstreeRepoArchiveOptions *opts,
- OstreeRepoFile *root,
- void *archive, /* Really struct archive * */
- GCancellable *cancellable,
- GError **error);
+} OstreeRepoExportArchiveOptions;
+
+gboolean ostree_repo_export_tree_to_archive (OstreeRepo *self,
+ OstreeRepoExportArchiveOptions *opts,
+ OstreeRepoFile *root,
+ void *archive, /* Really struct archive * */
+ GCancellable *cancellable,
+ GError **error);
gboolean ostree_repo_write_mtree (OstreeRepo *self,
OstreeMutableTree *mtree,
g_autofree char *commit = NULL;
g_autoptr(GVariant) commit_data = NULL;
struct archive *a;
- OstreeRepoArchiveOptions opts = { 0, };
+ OstreeRepoExportArchiveOptions opts = { 0, };
context = g_option_context_new ("COMMIT - Stream COMMIT to stdout in tar format");
opts.timestamp_secs = ostree_commit_get_timestamp (commit_data);
- if (!ostree_repo_write_tree_to_archive (repo, &opts, (OstreeRepoFile*)root, a,
- cancellable, error))
+ if (!ostree_repo_export_tree_to_archive (repo, &opts, (OstreeRepoFile*)root, a,
+ cancellable, error))
goto out;
if (archive_write_close (a) != ARCHIVE_OK)